<?php
/**
 * NRHC-Lite theme
 */

  echo $site->DOCTYPE();

  $parentTheme = uri::toRelative(realpath(__DIR__.'/../nrhc'));

?>
<?php snippet('ascii-art.php') ?>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <!-- Set the viewport width to device width for mobile -->
  <meta name="viewport" content="width=device-width" />

  <title><?php echo $page->title() ?> | <?php echo $site->title() ?></title>

  <meta name="description" content="<?= $page->description(); ?>">
  <meta name="author" content="<?= $page->author(); ?>">
  <meta name="copyright" content="<?= c::get('page.copyright') ?>">
  <meta name="keywords" content="<?= $page->keywords(); ?>">

  <link rel="shortcut icon" href="/themes/nrhc/images/favicon.ico">

  <?php if(c::get('debug')): ?>
  <link href="/themes/nrhc/stylesheets/style.css" rel="stylesheet">
  <?php else: ?>
  <link href="/themes/nrhc/stylesheets/style.min.css" rel="stylesheet">
  <?php endif ?>
  <?php foreach( (array) $page->get( 'css' ) as $css ): ?>
  <link href="<?= $css['file']; ?>" rel="<?= $css['rel']; ?>">
  <?php endforeach; ?>

	<script src="/themes/nrhc/javascripts/foundation/modernizr.foundation.js"></script>

  <!--[if IE]>
    <link href="/themes/nrhc/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
  <![endif]-->

	<!-- IE Fix for HTML5 Tags -->
	<!--[if lt IE 9]>
		<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

</head>

<body>

  <header id="main">
    <h1>
      <img src="<?= $parentTheme ?>/images/nrhc-logo.gif">
    </h1>
  </header>

  <hr>

  <div id="cms" role="main">
    <div class="twelve columns">

<?= $liriope ?>

    </div>
  </div><!-- /#cms -->

  <footer id="main">
    <div class="row">
      <div class="twelve columns">
        <?php snippet('footer-businesscard.php') ?>
      </div>
    </div>
  </footer>

  <?php if( $error ) echo $error; ?>

  <script src='/themes/nrhc/javascripts/scripts.min.js'></script>

  <?php foreach( (array) $page->get( 'js' ) as $script): ?>
  <script src="<?= $script['file']; ?>" type="<?= $script['type']; ?>"></script>
  <?php endforeach; ?>
  <?php foreach( (array) $page->get( 'script' ) as $block): ?>
  <script type="text/javascript" charset="UTF-8">
    <?= $block; ?>
  </script>
  <?php endforeach; ?>
  <!-- end scripts-->

  <script>
    window._gaq = [['_setAccount','UA-11629380-1'],['_trackPageview'],['_trackPageLoadTime']];
    Modernizr.load({
      load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
    });
  </script>

  <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
       chromium.org/developers/how-tos/chrome-frame-getting-started -->
  <!--[if lt IE 7 ]>
    <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
    <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
  <![endif]-->
  
</body>
</html>

